﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManyToManyEntityFramework.Model
{
    public class Course
    {
        [Key] //Makes the property below the Primary Key (PK)
        public int CourseId { get; set; }
        [Display(Name = "Course Name")] //What LabelFor will show on the view
        [Required] //Makes this property NOT NULL
        public string Name { get; set; }
        [Display(Name = "Number of Credits")]
        public int NumCredits { get; set; }

        public virtual List<Students_Courses> Students_Courses { get; set; }
    }
}